/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package uvexposureapplication.sensors;

/**
 *
 * @author matthieukluj
 */
public class AllSensors {
    
    private static String name;
    private static AbstractSensor tempSensor;
    private static AbstractSensor uvrSensor;
    private static AbstractSensor locSensor;

    public static void main(String[] args) {
        if (args.length < 2) {
            System.out.println("usage: java AllSensors [username][ElvinURL]");
            System.exit(0);
        }
        
        name = args[0];
        String server = args[1];
        tempSensor = new TemperatureSensor(name, server);
        uvrSensor = new UVRSensor(name, server);
        locSensor = new LocSensor(name, server);
        
        new Thread(tempSensor).start();
        new Thread(uvrSensor).start();
        new Thread(locSensor).start();
    }
}
